package com.weakteam.orderonline.adminconsole.gwt.client.util.uploader;

/**
 * @author Nail
 */

public final class FileApiSupport {

    public static native boolean isDragDropSupported()/*-{
        return 'draggable' in document.createElement('span');
    }-*/;

    public static native boolean isHttpXmlRequestLevel2()/*-{
        return !!((typeof XMLHttpRequest != "undefined") &&
            (new XMLHttpRequest()).upload);
    }-*/;

    public static native boolean isMultipleFileInputSupported()/*-{
        var input=document.createElement('input');
        input.setAttribute('type','file');
        return input.files!=null;
    }-*/;
}
